$('.fancybox').fancybox({
    beforeClose: function () {
        EditID = 0;
    }
});
$('.fancybox-effects-c').fancybox({
    wrapCSS: 'fancybox-custom',
    closeClick: true,
    openEffect: 'none',
    helpers: { title: { type: 'inside' } }
});